package com.nowoe.aop;

import com.nowoe.aop.aspectj.AspectPointcut;

/**
 * @author 倚栏听风 2023/9/16 11:33
 */
public class AdvisorImpl implements Advisor {
    private Advice advice;
    private AspectPointcut pointcut;

    public AdvisorImpl(Advice advice, AspectPointcut pointcut) {
        this.advice = advice;
        this.pointcut = pointcut;
    }

    @Override
    public Advice advice() {
        return advice;
    }

    @Override
    public AspectPointcut pointcut() {
        return pointcut;
    }
}
